package com.dd.cloud.user.feign;

import com.dd.cloud.user.res.pres.DrugsModelPageRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description: es服务远程
 * @Author: czg
 * @Date: 2022/12/14 17:41
 * @Version: 1.0.0
 */
@FeignClient("dd-search-service")
public interface SearchFeignService {

    @PostMapping("/search/drugs/es/save")
    public ResponseEntity<Boolean> drugsEsSave(@RequestBody List<DrugsModelPageRes> esModelList);
}
